package others;

import java.util.Random;

public class Extend_random_number {
    public static int random_num(int m){
        Random random = new Random();
        return random.nextInt(m);
    }

    public static void main(String[] args){
        int num = random_num(5);
        System.out.print(num);
    }
}
